package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogPostTagsMapper;
import com.aurora.blog.domain.BlogPostTags;
import com.aurora.blog.service.IBlogPostTagsService;

/**
 * 文章标签关联Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-04
 */
@Service
public class BlogPostTagsServiceImpl implements IBlogPostTagsService 
{
    @Autowired
    private BlogPostTagsMapper blogPostTagsMapper;

    /**
     * 查询文章标签关联
     * 
     * @param id 文章标签关联主键
     * @return 文章标签关联
     */
    @Override
    public BlogPostTags selectBlogPostTagsById(Long id)
    {
        return blogPostTagsMapper.selectBlogPostTagsById(id);
    }

    /**
     * 查询文章标签关联列表
     * 
     * @param blogPostTags 文章标签关联
     * @return 文章标签关联
     */
    @Override
    public List<BlogPostTags> selectBlogPostTagsList(BlogPostTags blogPostTags)
    {
        return blogPostTagsMapper.selectBlogPostTagsList(blogPostTags);
    }

    /**
     * 新增文章标签关联
     * 
     * @param blogPostTags 文章标签关联
     * @return 结果
     */
    @Override
    public int insertBlogPostTags(BlogPostTags blogPostTags)
    {
        return blogPostTagsMapper.insertBlogPostTags(blogPostTags);
    }

    /**
     * 修改文章标签关联
     * 
     * @param blogPostTags 文章标签关联
     * @return 结果
     */
    @Override
    public int updateBlogPostTags(BlogPostTags blogPostTags)
    {
        return blogPostTagsMapper.updateBlogPostTags(blogPostTags);
    }

    /**
     * 批量删除文章标签关联
     * 
     * @param ids 需要删除的文章标签关联主键
     * @return 结果
     */
    @Override
    public int deleteBlogPostTagsByIds(Long[] ids)
    {
        return blogPostTagsMapper.deleteBlogPostTagsByIds(ids);
    }

    /**
     * 删除文章标签关联信息
     * 
     * @param id 文章标签关联主键
     * @return 结果
     */
    @Override
    public int deleteBlogPostTagsById(Long id)
    {
        return blogPostTagsMapper.deleteBlogPostTagsById(id);
    }
}
